/**
 * 
 */
package com.monkeyboy.security.social.qq;

import org.springframework.social.security.SocialAuthenticationFilter;
import org.springframework.social.security.SpringSocialConfigurer;

/**
 * @Description 自定义登录和注册连接
 * @author Gavin<br>
 *         2019年8月28日
 */
public class MySpringSocialConfigure extends SpringSocialConfigurer {
	private String filterProcessesUrl;

	public MySpringSocialConfigure(String filterProcessesUrl) {
		this.filterProcessesUrl = filterProcessesUrl;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected <T> T postProcess(T object) {
		SocialAuthenticationFilter filter = (SocialAuthenticationFilter) super.postProcess(object);
		filter.setFilterProcessesUrl(filterProcessesUrl);
		return (T) filter;
	}
}
